package com.hq.stat.service.impl;

import com.hq.stat.domain.BaseEntity;
import com.hq.stat.mapper.StatMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @BelongsPackage: com.hq.stat.service.impl
 * @Author: jiangjunjie
 * @CreateTime: 2024-12-25  09:31
 * @Description: TODO
 * @Version: 1.8
 */
@Service
@Transactional
public class StatServiceImpl implements StatService{
    @Autowired
    private StatMapper statMapper;
    @Override
    public List<BaseEntity> loadCustomerAreaStatList() {
        return statMapper.queryCustomerAreaStat();
    }

    @Override
    public List<Double> loadCompanyYearGradeStatList(String year) {
        return statMapper.queryCompanyYearGradeStat(year);
    }

    @Override
    public List<BaseEntity> loadOpernameYearGradeStatList(String year) {
        return statMapper.queryOpernameYearGradeStat(year);
    }
}
